package it.slkfarm.helpers;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;

public class ListButton extends ImageButton {

	public ListButton(Context context, AttributeSet attrs) 
	{
		super(context, attrs);
		this.setFocusable(false);
	}

	@Override
    public void setPressed(boolean pressed) 
	{
		if (pressed && ((View) getParent()).isPressed()) 
		{
			return;
        }
        super.setPressed(pressed);
    }
}
